/****************************************************************************/
/* NAME:           light.h                                                  */
/* PURPOSE:        Osmolator management                                     */
/* CREATED_BY:     Vyx                                                      */
/* CREATION_DATE:  07/05/2012                                               */
/************************************** (C) Copyright 2012 AquaLink *********/

#include "main.h"
#include "time.h"

typedef struct
{
    uint8_t          id;               /* id of light     */
    uint8_t          time_start_HH;    /* Hours start     */
    uint8_t          time_start_MM;    /* Minute start    */
    uint8_t          time_stop_HH;     /* Hours stop      */
    uint8_t          time_stop_MM;     /* Minute stop     */
    bool             light_auto;       /* Mode auto       */
    uint8_t          OutputName;          /* Name of out put */
}Light_def_t;

/**
  * @brief  Main function of light module.
  * @param  none
  * @retval None
  */
void vTaskCTRL_ECLAIRAGE();

/**
  * @brief  Initialisation of modules.
  * @param  none
  * @retval None
  */
void Light_init();

/**
  * @brief  Get the status of light choosen.
  * @param  light ID
  * @retval light status
  */
bool GetLightStatus(uint8_t lightID);
